//
//  NewNetWorkManager.h
//  VLv
//
//  Created by lanouhn on 16/6/27.
//  Copyright © 2016年 Leo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NewNetWorkManager : NSObject

/*方法的作用:GET 请求
 *@param urlStr : 数据请求接口地址
 *@param dic : 接口请求数据参数
 *@param finish : 数据请求失败的回调
 *@param conError : 数据请求失败的回调
 */
+ (void)requestGETWithURLString:(NSString *)urlStr parDic:(NSDictionary *)dic finish:(void(^)(id responseObject))finish conError:(void(^)(NSError *error))conError;


/*方法的作用:POST 请求
 *@param urlStr : 数据请求接口地址
 *@param dic : 接口请求数据参数
 *@param finish : 数据请求失败的回调
 *@param conError : 数据请求失败的回调
 */
+ (void)requestPOSTWithURLString:(NSString *)urlStr parDic:(NSDictionary *)dic finish:(void(^)(id responseObject))finish conError:(void(^)(NSError *error))conError;



+ (void)uploadHeaderWithUrl:(NSString *)urlStr parDic:(NSDictionary *)dic  imageData:(NSData *)data fileName:(NSString *)fielName finish:(void(^)(id responseObject))finish conError:(void(^)(id responseObject))failure;



//webservice请求






@end
